package cn.cq.admin.entity.dto;

import cn.cq.admin.service.BatchService;
import cn.cq.common.BaseConst;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import static cn.cq.common.BaseConst.DEFAULT_DATE_TIME_FORMAT;

@Getter
@Setter
@NoArgsConstructor
public class BatchDto extends BasePage {
    private Long id;
    private String batchName;
    private Integer status;
    private Long[] courseId;
    @DateTimeFormat(pattern = DEFAULT_DATE_TIME_FORMAT)
    private Date startTime;
    @DateTimeFormat(pattern = DEFAULT_DATE_TIME_FORMAT)
    private Date endTime;
    @DateTimeFormat(pattern = DEFAULT_DATE_TIME_FORMAT)
    private List<Date> startToEnd;


}
